package msg.chestionar.ejb.bi;

import java.util.List;

import javax.ejb.Local;

import com.msg.chestionar.entities.RaspunsuriE;
import com.msg.chestionar.to.ChestionarTO;
import com.msg.chestionar.to.RaspunsuriTO;
import com.msg.chestionar.to.UtilizatorTO;

@Local
public interface RaspunsBI {

	//int getRaspunsuriNumber();

	RaspunsuriTO getRaspunsById(long id);
	
	List<RaspunsuriE> getRaspunsuriEByChestionar(long id);
	
	void deleteRaspunsuriChestionar(long id);

	RaspunsuriTO addRaspuns(RaspunsuriTO r);

	List<RaspunsuriTO> getAllRaspunsuri();

	List<RaspunsuriTO> getRaspunsuriByOptiune(long id);
	
	List<RaspunsuriTO> getRaspText(long intrebId);

	void saveRaspunsuri(ChestionarTO chestionar, UtilizatorTO user);

	List<RaspunsuriTO> getRaspunsuriByUser(long id);

	List<RaspunsuriTO> getRaspunsuriByChestionar(long id);

	Integer getRaspNumberByChestionar(long id);
	public Integer getRaspunsuriByOption(long chId, long optId);	

	public Integer getRaspunsuriNumber(long chestId, long intrebareId);
	
	public String getProcentaj(long chestId,long optId);

}
